import request from '@/utils/request'

// 查询动作工序关联列表
export function listActionProcess(query) {
  return request({
    url: '/action/actionProcess/list',
    method: 'get',
    params: query
  })
}

// 查询动作工序关联详细
export function getActionProcess(id) {
  return request({
    url: '/action/actionProcess/' + id,
    method: 'get'
  })
}

// 新增动作工序关联
export function addActionProcess(data) {
  return request({
    url: '/action/actionProcess',
    method: 'post',
    data: data
  })
}

// 修改动作工序关联
export function updateActionProcess(data) {
  return request({
    url: '/action/actionProcess',
    method: 'put',
    data: data
  })
}

// 删除动作工序关联
export function delActionProcess(id) {
  return request({
    url: '/action/actionProcess/' + id,
    method: 'delete'
  })
}
